<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<link type="text/css" rel="stylesheet" href="css/css.css" />
	<body>
		<div id="wrap">
			<div id="dl">
				<div id="logo"><h1>统一资源管理平台</h1><img src="img/logo.png"></div>
				<div class="clear"></div>
				<form name="myForm" method="post" οnsubmit="return checkNull();">
					<input class="input" type="text" id="text" name="text" placeholder="用户名" />
					<input class="input" type="password" id="pass" name="pass" placeholder="密码" />
					<input type="submit" id="but" value="立即登录" />
				</form>
				<p id="p"><a href="#"><img src="img/qq.png"></a><a href="#"><img src="img/wx.png"></a></p>
			</div>
		</div>
		<script language="JavaScript">
			function checkNull(){
				if(document.getElementById("text").value == ""){
					alert("账号不能为空！");
					document.getElementById("text").focus();
					return false;
				}
				if(document.getElementById("pass").value == ""){
					alert("密码不能为空！");
					document.getElementById("pass").focus();
					return false;
				}
			}
		</script>
	</body>
</html>
